'use strict';
let db = uniCloud.database();
exports.main = async (event, context) => {
 
  let docReferenceRes = await db.collection('doc_reference').get();

  if(docReferenceRes.affectedDocs !== 0 || docReferenceRes.data.length !== 0){
	  return{
		  status:0,
		  data:docReferenceRes.data
	  }
  } else {
	 return{
	 	status:1,
	 	msg:"没有数据"
	 } 
  }
 
  return {
	  status:-1,
	  msg:"稍后重试"
  }
};
